<template>
<div>
  <p>{{count.a}}</p>
  <button @click="getClick">button</button>
</div>
</template>

<script>
import { ref } from 'vue';

export default {
  name: 'App',
  setup() {
    let count = ref({
      a: 12
    });
    function getClick() {
      // count.value ++;
      console.log(count);
      count.value.a ++;
    }

    return {
      count,
      getClick
    };
  }
}
</script>
